package com.jxd.project.travel.controller;

import com.jxd.project.travel.dto.LoginQueryDTO;
import com.jxd.project.travel.model.Login;
import com.jxd.project.travel.service.ILoginService;
import com.jxd.project.travel.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LoginController
 * @Description TODO
 * @Author 邢子剑
 * @Date 2025/10/5 下午3:33
 * @Version 1.0
 */
@RestController
public class LoginController {
    @Autowired
    private ILoginService loginService;

    @RequestMapping("/login")
    public LoginQueryDTO login(@RequestBody LoginQueryDTO login){
        return loginService.login(login);
    }

    @RequestMapping("/login1")
    public UserInfo login1(@RequestBody Login login){
        return loginService.login1(login);
    }

}
